package com.wf.course.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.utils.page.PageBean;
import com.wf.course.dao.IAreaMapper;
import com.wf.course.model.comm.Area;
import com.wf.course.service.IAreaService;

@Service
@Transactional
public class IAreaServiceImpl implements IAreaService {
	
	@Autowired
	private IAreaMapper mapper;

	@Override
	public void getAreasList(PageBean<Area> pageBean) {
		// TODO Auto-generated method stub
		
		pageBean.setResults(mapper.getAreaList(pageBean));
		pageBean.setTotalCount(mapper.getAreaCount(pageBean));
		
	}

	@Override
	public void saveArea(Area Area) {
		// TODO Auto-generated method stub
		mapper.saveArea(Area);
		
	}

	@Override
	public void deleteArea(Integer id) {
		// TODO Auto-generated method stub
		mapper.deleteArea(id);
		
	}

	@Override
	public Area downLoadArea(Integer id) {
		// TODO Auto-generated method stub
		return mapper.downLoadArea(id);
	}

	@Override
	public Integer updateArea(Area Area) {
		// TODO Auto-generated method stub
		return mapper.updateArea(Area);
		
	}

	 

}
